import QtQuick 2.0

Rectangle {
    id:page2
    visible: true
    width: 640
    height: 480
    color: 'blue'
    Text {
        anchors.centerIn:home
        text: qsTr("home.qml")
    }
    MouseArea{
        width:200
        height: 200
        anchors.right:page2.right
        anchors.top: page2.top
        onClicked:{
            console.debug("page2点击");
              var component = Qt.createComponent("qrc:/main.qml");
             if (component.status === Component.Ready) {
                 var bQml = component.createObject(mainHome);
             }
        }
    }
}
